vTPM/TPM2: TPM 2.0 takes ownership and create SRK
authorQuan Xu <quan.xu@intel.com>
Thu, 15 Jan 2015 09:21:44 +0000 (04:21 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Jan 2015 12:54:49 +0000 (12:54 +0000)
commitb80507775dce91d506ac4620975976e0fdcefaf6
treeac5ab80c0e7ce9ec147078adc7ff9d0e73da9ef3
parentde438117e0ab8f15b167a93d615213ce38572a0c
vTPM/TPM2: TPM 2.0 takes ownership and create SRK

TPM2_CreatePrimary is used to create a Primary Object under one of
the Primary Seeds or a Temporary Object under TPM_RH_NULL. The command
uses a TPM2B_PUBLIC as a template for the object to be created. The
command will create and load a Primary Object. The sensitive area is
not returned. Any type of object and attributes combination that is
allowed by TPM2_Create() may be created by this command. The constraints
on templates and parameters are the same as TPM2_Create() except that a
Primary Storage Key and a Temporary Storage Key are not constrained to
use the algorithms of their parents.

Signed-off-by: Quan Xu <quan.xu@intel.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
stubdom/vtpmmgr/init.c
stubdom/vtpmmgr/vtpmmgr.h